package org.apache.ftpserver.command.impl;

import java.util.Hashtable;

public class RemoteOperateFileNameCache {

	private static Hashtable<String,String> remoteUploadFiles = new Hashtable<String, String>();
	private static Hashtable<String,String> remoteDeleteFiles = new Hashtable<String, String>();

	
	public synchronized static String getRemoteUploadFileFtpHomeDirectory(String fileName) {
		return remoteUploadFiles.get(fileName);
	}
	public synchronized static void setRemoteUploadFileFtpHomeDirectory(String fileName,String ftpHomeDirectory) {
	 remoteUploadFiles.put(fileName,ftpHomeDirectory);
	}
	public synchronized static String getRemoteDeleteFileFtpHomeDirectory(String fileName) {
		return remoteDeleteFiles.get(fileName);
	}
	public synchronized static void setRemoteDeleteFileFtpHomeDirectory(String fileName,String ftpHomeDirectory) {
		remoteDeleteFiles.put(fileName,ftpHomeDirectory);
	}
}
